import 'package:yurun_smartmerchants/models/personinformationsave_entity.dart';

personinformationsaveEntityFromJson(PersoninformationsaveEntity data, Map<String, dynamic> json) {
	if (json['id'] != null) {
		data.id = json['id']?.toInt();
	}
	if (json['licenseNo'] != null) {
		data.licenseNo = json['licenseNo']?.toString();
	}
	if (json['name'] != null) {
		data.name = json['name']?.toString();
	}
	if (json['type'] != null) {
		data.type = json['type']?.toInt();
	}
	if (json['phone'] != null) {
		data.phone = json['phone']?.toString();
	}
	if (json['businessTypeId'] != null) {
		data.businessTypeId = json['businessTypeId']?.toInt();
	}
	if (json['marketId'] != null) {
		data.marketId = json['marketId']?.toInt();
	}
	if (json['idCardNo'] != null) {
		data.idCardNo = json['idCardNo']?.toString();
	}
	if (json['fileIdi'] != null) {
		data.fileIdi = json['fileIdi']?.toInt();
	}
	if (json['filePathi'] != null) {
		data.filePathi = json['filePathi']?.toString();
	}
	if (json['fileIdii'] != null) {
		data.fileIdii = json['fileIdii']?.toString();
	}
	if (json['filePathii'] != null) {
		data.filePathii = json['filePathii']?.toString();
	}
	return data;
}

Map<String, dynamic> personinformationsaveEntityToJson(PersoninformationsaveEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['id'] = entity.id;
	data['licenseNo'] = entity.licenseNo;
	data['name'] = entity.name;
	data['type'] = entity.type;
	data['phone'] = entity.phone;
	data['businessTypeId'] = entity.businessTypeId;
	data['marketId'] = entity.marketId;
	data['idCardNo'] = entity.idCardNo;
	data['fileIdi'] = entity.fileIdi;
	data['filePathi'] = entity.filePathi;
	data['fileIdii'] = entity.fileIdii;
	data['filePathii'] = entity.filePathii;
	return data;
}